//
//  SHBlockOneViewController.m
//  SDemo
//
//  Created by gg on 2018/7/24.
//  Copyright © 2018年 gg. All rights reserved.
//

#import "SHBlockOneViewController.h"
#import "SHBlockTwoViewController.h"
@interface SHBlockOneViewController () <TwoDelegate>

@end

@implementation SHBlockOneViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title  = @"block 1";
    self.view.backgroundColor = [UIColor greenColor];
    
    //适配字体，所有系统字体名称
//    for (NSString *fontnName in [UIFont familyNames]) {
//        NSLog(@"fontname : %@",fontnName);
//    }
    
    
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    SHBlockTwoViewController *two = [[SHBlockTwoViewController alloc] init];
    two.delegate = self;
//    two.myblock = ^(NSString *name) {
//        NSLog(@"name : %@",name);
//    };
    [self.navigationController pushViewController:two animated:YES];
}


- (void)getBackValue:(NSString *)name {
    NSLog(@"name : %@",name);
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
   
}


@end
